﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SendIndustrialNetwork;
using System.IO;

namespace TestForm
{
    public partial class Form1 : Form
    {
        ThreeCoordinateCheck tc = new ThreeCoordinateCheck();
        RBResourceStatusStepPlan rs = new RBResourceStatusStepPlan();
        pushTableDataToDC ps = new pushTableDataToDC();
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ps.GetTableData();           
            //ps.GetTableDef();
            //文件上传
            //ps.ExcuteFile("http://20.12.131.50/InSiteWebApplication/Temp/s0tKwZV5DEmZkYnbbV4e4A/189955-A.pdf");
            // ps.ExcuteFile("D:/Camstar/InSite Web Application/InSiteWebApplication/Temp/s0tKwZV5DEmZkYnbbV4e4A/189955-A.pdf");
            //数据结构
            //ps.ExcuteTableDef();
            //表数据
            //ps.Excute();           


            //tc.Excute();
            //rs.Excute();
            //FileStream fileStream = new FileStream("D:\\fb\\123.xml", FileMode.Open, FileAccess.Read);
            //StreamReader streamReader = new StreamReader(fileStream);
            //var str = streamReader.ReadToEnd();
            //fileStream.Close();

            //LYIndustryFileExchangeHelper.FileUpload("11013",DateTime.Now.ToString("yyyyMMddHHmm")+ "123.xml", str, "word 文件测试");

        }
    }
}
